package cn.zjutleo.village_server.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author : Qin Zhenghan
 * @date : Created in 2021/8/15
 * @description: 微信登录DTO
 */
@Data
public class WechatLoginDto {
    /**
     * 微信code
     */
    @ApiModelProperty("微信code")
    @NotEmpty(message = "微信code不可为空")
    private String code;

    /**
     * 昵称
     */
    @ApiModelProperty("微信昵称")
    private String nickname;

    /**
     * 头像URL
     */
    @ApiModelProperty("微信头像URL")
    private String avatarUrl;

}
